

package jetbrains.buildServer.server.graphql.model.connections.agent;

import graphql.relay.ConnectionCursor;
import graphql.relay.Edge;
import jetbrains.buildServer.server.graphql.model.buildType.BuildType;
import org.jetbrains.annotations.NotNull;

public class AgentBuildTypeEdge implements Edge<BuildType> {
  @NotNull
  private final Edge<BuildType> myDelegate;

  public AgentBuildTypeEdge(@NotNull Edge<BuildType> delegate) {
      myDelegate = delegate;
  }

  @Override
  public BuildType getNode() {
    return myDelegate.getNode();
  }

  @Override
  public ConnectionCursor getCursor() {
    return myDelegate.getCursor();
  }

  @NotNull
  public BuildType getAgentBuildType() {
    return myDelegate.getNode();
  }
}